package com.agileboot.domain.airport.report.db;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 安全信息表 Service 实现类
 */
@Service
public class SirReportServiceImpl extends ServiceImpl<SirReportMapper, SirReportEntity> implements SirReportService {

    // 这里可以扩展自定义业务逻辑
    @Override
    public boolean deleteByInspectionCheckId(Long inspectionCheckId) {
        return baseMapper.deleteByInspectionCheckId(inspectionCheckId) > 0;
    }

    @Override
    public boolean updateStatusByReportId(Long reportId, String status) {
        return baseMapper.updateStatusByReportId(reportId, status) > 0;
    }

    @Override
    public List<SirReportEntity> getByIds(List<Long> reportIds) {
        return super.listByIds(reportIds); // MyBatis-Plus 默认方法
    }

    @Override
    public List<SirReportEntity> getByInspectionCheckIdList(List<Long> inspectionCheckIds) {
        return baseMapper.getByInspectionCheckIdList(inspectionCheckIds);
    }


}
